
<%@ page import="duylinh.VatLieu" %>
<!doctype html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'vatLieu.label', default: 'VatLieu')}" />
    <title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>
<a href="#show-vatLieu" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
<div class="nav" role="navigation">
    <ul>
        <li>
            <g:link class="list" action="list">
                <g:message code="default.list.label.vatLieu"  />
            </g:link>
        </li>
        <li>
            <g:link class="create" action="createEditVatLieu">
                <g:message code="default.new.label.vatLieu" />
            </g:link>
        </li>
    </ul>
</div>
<div id="show-vatLieu" class="content scaffold-show" role="main">

    <div class="quoteBig marginTopLarge marginLeftLarge ">
        <g:message code="default.show.label" args="[vatLieuInstance?.ten]" />
    </div>

    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>

    <div class="marginTopLarge">

        <div class="leftColumn floatL">
            <g:if test="${vatLieuInstance}">

                    <div class=" fontBold marginBottomLarge" style="margin-left: 90px;">
                        <g:if test="${vatLieuInstance?.ten}">
                            ${vatLieuInstance?.ten}
                        </g:if>
                    </div>

                    <div style="margin-left: 90px;">

                        <a href="${dl.getVatLieuPhoto(['vatLieu':vatLieuInstance])}" class="anhVatLieu">
                            <img src="${dl.getVatLieuPhoto(['getThumb':true, 'vatLieu':vatLieuInstance])}"/>
                        </a>

                        <g:javascript>

                            $(function() {
                                $('.anhVatLieu').lightBox({
                                                            imageLoading:			'${request.contextPath}/images/lightbox-ico-loading.gif',		// (string) Path and the name of the loading icon
                                                            imageBtnPrev:			'${request.contextPath}/images/lightbox-btn-prev.gif',			// (string) Path and the name of the prev button image
                                                            imageBtnNext:			'${request.contextPath}/images/lightbox-btn-next.gif',			// (string) Path and the name of the next button image
                                                            imageBtnClose:			'${request.contextPath}/images/lightbox-btn-close.gif',		// (string) Path and the name of the close btn
                                                            imageBlank:	            '${request.contextPath}/images/lightbox-blank.gif'})
                                                         });

                        </g:javascript>
                    </div>
            </g:if>
        </div>

        <div class="rightColumn floatL">
            <ol class="property-list vatLieu">
                <g:if test="${vatLieuInstance?.ten}">
                    <li class="fieldcontain">
                        <span id="ten-label" class="property-label"><g:message code="vatLieu.ten.label" default="Ten" /></span>

                        <span class="property-value" aria-labelledby="ten-label"><g:fieldValue bean="${vatLieuInstance}" field="ten"/></span>

                    </li>
                </g:if>

                <g:if test="${vatLieuInstance?.chatLieu}">
                    <li class="fieldcontain">
                        <span id="chatLieu-label" class="property-label"><g:message code="vatLieu.chatLieu.label" default="Chat Lieu" /></span>

                        <span class="property-value" aria-labelledby="chatLieu-label"><g:fieldValue bean="${vatLieuInstance}" field="chatLieu"/></span>

                    </li>
                </g:if>

                <g:if test="${vatLieuInstance?.chieuDai}">
                    <li class="fieldcontain">
                        <span id="chieuDai-label" class="property-label"><g:message code="vatLieu.chieuDai.label" default="Chieu Dai" /></span>

                        <span class="marginRightStd property-value" aria-labelledby="chieuDai-label">
                            <g:fieldValue bean="${vatLieuInstance}" field="chieuDai"/>
                            <g:fieldValue bean="${vatLieuInstance}" field="chieuDaiDonvi"/>
                        </span>

                    </li>
                </g:if>

                <g:if test="${vatLieuInstance?.chieuRong}">
                    <li class="fieldcontain">
                        <span id="chieuRong-label" class="property-label"><g:message code="vatLieu.chieuRong.label" default="Chieu Rong" /></span>

                        <span class="property-value marginRightStd" aria-labelledby="chieuRong-label">
                            <g:fieldValue bean="${vatLieuInstance}" field="chieuRong"/>
                            <g:fieldValue bean="${vatLieuInstance}" field="chieuRongDonvi"/>
                        </span>

                    </li>
                </g:if>

                <g:if test="${vatLieuInstance?.doDay}">
                    <li class="fieldcontain">
                        <span id="doDay-label" class="property-label"><g:message code="vatLieu.doDay.label" default="Do Day" /></span>

                        <span class="property-value marginRightStd" aria-labelledby="doDay-label">
                            <g:fieldValue bean="${vatLieuInstance}" field="doDay"/>
                            <g:fieldValue bean="${vatLieuInstance}" field="doDayDonvi"/>
                        </span>

                    </li>
                </g:if>


                <g:if test="${vatLieuInstance?.dacDiem}">
                    <li class="fieldcontain">
                        <span id="dacDiem-label" class="property-label"><g:message code="vatLieu.dacDiem.label" default="Dac Diem" /></span>

                        <span class="property-value" aria-labelledby="dacDiem-label"><g:fieldValue bean="${vatLieuInstance}" field="dacDiem"/></span>
                    </li>
                </g:if>

                <g:if test="${vatLieuInstance?.dangCuon}">
                    <li class="fieldcontain">
                        <span id="dangCuon-label" class="property-label"><g:message code="vatLieu.dangCuon.label" default="Dang Cuon" /></span>

                        <span class="property-value" aria-labelledby="dangCuon-label"><g:formatBoolean boolean="${vatLieuInstance?.dangCuon}" /></span>

                    </li>
                </g:if>



                <g:if test="${vatLieuInstance?.nhaCungUng}">
                    <li class="fieldcontain">
                        <span id="nhaCungUng-label" class="property-label"><g:message code="vatLieu.nhaCungUng.label" default="Nha Cung Ung" /></span>

                        <span class="property-value" aria-labelledby="nhaCungUng-label">
                            <g:link controller="nhaCungUng" action="show" id="${vatLieuInstance?.nhaCungUng?.id}">
                                ${vatLieuInstance?.nhaCungUng?.ten}
                            </g:link>
                        </span>

                    </li>
                </g:if>

            </ol>
        </div>

        <div class="clear"></div>
    </div>






    <g:form>
        <fieldset class="buttons">
            <g:hiddenField name="id" value="${vatLieuInstance?.id}" />
            <g:link class="edit" action="createEditVatLieu" params="[vatLieuId:vatLieuInstance?.id]" ><g:message code="default.button.edit.label" default="Edit" /></g:link>
            <g:actionSubmit class="" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
        </fieldset>
    </g:form>
</div>
</body>
</html>
